package main

import (
	"fmt"
	"time"
)

func main() {
	//sdf := "dasdfasdf"
	var UdpDataChan = make(chan []byte, 500)
	//go func(n string) {
	//	for {
	//		fmt.Println("Welcome", n)
	//		time.Sleep(3*time.Second)
	//	}
	//}("Gophers")

	go func(udpDatachan chan []byte) {
		for {
			fmt.Println("Welcome")
			time.Sleep(3*time.Second)
            UdpDataChan <- []byte("123455666")
		}
	}(UdpDataChan)
	for item := range UdpDataChan{
		fmt.Println(string(item))
	}
	time.Sleep(30*time.Second)
}